public class Motherboard extends Component implements hasSpeed
{
    private final String speed;
    protected Motherboard(String Name, String brand, int price, String speed)
    {
        super(Name, brand, price);
        this.speed = speed;
    }

    @Override
    public String work()
    {
        return "Motherboard work";
    }

    @Override
    public String getSpeed()
    {
        return this.speed;
    }

    @Override
    public String getInfo()
    {
        return "名称：" + this.getName() + " 品牌：" + this.getBrand()
                + " 运行速度：" + this.getSpeed() + " 价格：" + this.getPrice();
    }
}
